import { http } from '@/utils/http'

export const postLoginWxMinAPI = (data) => {
  return http({
    method: 'POST',
    url: '/login/wxMin',
    data,
  })
}

export const postLoginWxMinSimpleAPI = (phoneNumber) => {
  return http({
    method: 'POST',
    url: '/login/wxMin/simple',
    data: {
      phoneNumber,
    },
  })
}

export const postLoginAPI = (data) => {
  return http({
    method: 'POST',
    url: '/api/user/login',
    data,
  })
}
